#ifndef PSETTINGSDIALOG_H
#define PSETTINGSDIALOG_H

#include <QDialog>
#include <QDialogButtonBox>
#include <QSettings>
#include <QDir>

#include "ui_psettingsdialog.h"

namespace Ui {
	class PSettingsDialog;
}

class PSettingsDialog : public QDialog
	{
		Q_OBJECT
		Q_DISABLE_COPY(PSettingsDialog)

		public:
			explicit PSettingsDialog(QWidget *parent = 0);
			virtual ~PSettingsDialog();

			QSettings *settingsConf();

		protected:
			virtual void changeEvent(QEvent *e);
			virtual void syncSettings();

		private:
			Ui::PSettingsDialog *m_ui;
			QSettings *settings;

		private slots:
			void save(QAbstractButton*);

		signals:
			void updateGUI();
	};

#endif // PSETTINGSDIALOG_H
